<!--{subtemplate inc/header}-->
<div id="sysmsg-box">
	<div id="sysmsg-error" class="sysmsg{if $error == ''} hidden{/if}">
		<div><span class="fl">$error</span><span class="close">关闭</span></div>
	</div>
	<div id="sysmsg-success" class="sysmsg{if $success == ''} hidden{/if}">
		<div><span class="fl">$success</span><span class="close">关闭</span></div>
	</div>
</div>
<div class="blank20"></div>
<div class="hbox">
	<dl class="user-handler">
		<dt><strong>会员登陆</strong></dt>
		<dd>
			<div class="fl">
				<form action="{u user/loginhandle}" method="post" name="user_login" id="user_login">
					<div>
						<p>帐号：</p>
						<input name="email" class="f-input" type="text" id="email" size="25" value="$user[email]" />
					</div>
					<div>
						<p>密码：</p>
						<input name="user_pwd" class="f-input" type="password" id="user_pwd" size="25" /><a href="{u user/getpwd}" style="margin-left:5px;">忘记密码？</a>
					</div>
					<div>
						<p>&nbsp;</p>
						<label><input type="checkbox" name="cookie_time" value="604800" /><span>一周内自动登陆</span></label>
					</div>
					<div class="btns">
						<p>&nbsp;</p>
						<input type="submit" class="f-submit" name="button" id="login-btn" value="登陆"/>
						<input type="hidden" name="action" value="loginhandle" />
						<input type="hidden" name="form_hash" value="{FORM_HASH}" />
					</div>
				</form>
			</div>
			<div class="fr">
				<p class="p1"><strong>还不是会员：</strong></p>
				<p class="p2">现在免费注册成为$_FANWE['setting']['site_name']会员，便能立刻享受便宜又放心的购物乐趣！</p>
				<p class="p3"><a href="{u user/reg}"><img src="{TPL_PATH}images/btn-reg.gif" /></a></p>
				<p class="p4">
					<a href="{u site/submit}">团购网站注册</a>
				</p>
			</div>
		</dd>
	</dl>
</div>
</body>
<script type="text/javascript">
jQuery(function($){
	tooltipTop = 0;
	
	$("#login-btn").click(function()
	{
		if($.trim($("#email").val()).length == 0)
		{
			$.showErr("请输入您注册的E-mail帐号或用户名");
			$("#email").focus();
			return false;
		}
		
		if($.trim($("#user_pwd").val()).length == 0)
		{
			$.showErr("请输入您的密码");
			$("#user_pwd").focus();
			return false;
		}
	});
});
</script>
<!--{subtemplate inc/footer}-->